<body id="public">
<?php 
  //$this->load->model('public/menu_model');
  $menu = $this->menu_model->menu('1'); 
  $menuChild1 = $this->menu_model->menuChild('2','1'); 
  $menuChild2 = $this->menu_model->menuChild('3','1'); 
  //print_r($menuChild1);die();
?>
<!-- Toggle CAC CHUC NANG 
  ======================================-->
<div id="nav">
  <div id="nav_inner">
    <div class="container">
      <p>abc</p>
      <p>abc</p>
      <p>abc</p>
      <p>abc</p>
    </div>
  </div>
</div>
<!-- Navbar
================================================== -->
<div class="navbar-fixed-top" role="navigation">
  <div class="navbar-inverse">
    <div class="container">
        <div class="row">
          <div class="col-md-5">
            <a href="<?php echo site_url();?>" style="color:#f3e500;">Logo công ty</a>
          </div>
          <div class="col-md-3">
            <a id="toggle_toc" href="#">Các chức năng <span class="caret" style="color:#fff;"></span></a>
          </div>
          <div class="col-md-4 text-right">
            <?php //if(!$this->ion_auth->logged_in()){ ?>
            <a href="" data-toggle="modal" data-target="#login">Đăng nhập</a>
            <a href="cac-goi-dich-vu-va-gia">&nbsp;&nbsp;|&nbsp;&nbsp;Đăng ký</a>
            <?php //}else{ ?>
              <!--<a href="khao-sat-truc-tuyen">Tài khoản của tôi</a>-->
            <?php //} ?>
          </div>
        </div>
    </div>
  </div>
</div>

  <!-- Top2 
    ==================================-->
  <div id="top2">
    <div class="container">
      <div class="container">
        <div class="row">
          <div class="col-md-2">
            <a class="brand" href = '<?php echo site_url();?>'><img src="<?php echo base_url();?>media/ksv-logo.png" alt="Khảo sát việt - khảo sát trực tuyến"></a>
          </div>
          <div class="col-md-10">
            <div class="head-top2">
              <ul class="nav navbar-nav navbar-right">
                <li><a href="#">Blogs</a></li>
                <li><a href="#">Tài liệu hướng dẫn</a></li>
                <li><a href="#">Hỗ trợ</a></li>
                <li><a href="#">Tài nguyên</a></li>
                <li><a href="<?php echo site_url('lien-he');?>">Liên hệ</a></li>
              </ul>
            </div>
            <ul class="bottom-top2 nav navbar-nav navbar-right">
              <?php
                foreach ($menu as $key => $val) {
                  if($val['menuId'] == 2){
              ?>
                  <li class="dropdown">
                    <a href="<?php echo site_url($val['menuLink']);?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $val['menuName'];?><b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                      <?php
                      foreach ($menuChild1 as $key1 => $val1) {
                      ?>
                        <li class="<?php isset($act)?'active':'';?>"><a href="<?php echo site_url($val1['menuLink']);?>"><?php echo $val1['menuName'];?></a></li>
                      <?php
                      }
                      ?>
                    </ul>
                  </li>
                  <?php
                  }
                  elseif($val['menuId'] == 3){
              ?>
                  <li class="dropdown">
                    <a href="<?php echo site_url($val['menuLink']);?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $val['menuName'];?><i class="caret"></i></a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                      <?php
                      foreach ($menuChild2 as $key2 => $val2) {
                      ?>
                        <li><a href="<?php echo site_url($val2['menuLink']);?>"><?php echo $val2['menuName'];?></a></li>
                      <?php
                      }
                      ?>
                    </ul>
                  </li>
                  <?php
                  }else{
              ?>
                  <li><a href="<?php echo site_url($val['menuLink']);?>"><?php echo $val['menuName'];?></a></li>
              <?php
                }
              }
              ?>
              <li class="btn-ksv"><a href="<?php echo site_url('cac-goi-dich-vu-va-gia');?>">Các gói dịch vụ & Giá</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div><!--End Nav -->



<!-- Nội dung hiển thị khi nhấp vào nút đăng nhập-->
<div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel" class="text-center">Đăng nhập vào <img alt="Khảo sát việt - khảo sát trực tuyến" src="<?php echo base_url();?>media/ksv-logo2.png"></h3>
      </div>
      <div class="modal-body">
        <form name="login" action="<?php echo site_url('dang-nhap');?>" method="post" class="form-horizontal" role="form">
          <div class="form-group">
            <label for="email" class="col-sm-4 control-label"> Tên đăng nhập/Email </label>
            <div class="col-sm-8">
              <input name="email" type="text" class="form-control" placeholder="Tên đăng nhập hoặc địa chỉ Email">
            </div>
          </div>
          <div class="form-group">
            <label for="password" class="col-sm-4 control-label"> Mật khẩu </label>
            <div class="col-sm-8">
              <input name="password" type="password" class="form-control" placeholder="Mật khẩu">
            </div>
          </div> 
          <div class="form-group">
            <div class="col-sm-offset-4 col-sm-8">
              <div class="checkbox">
                <label>
                  <input type="checkbox"> Ghi nhớ
                </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-offset-4 col-sm-8">
              <button class="btn btn-primary" type="submit">Đăng nhập</button>
              <a href="<?php echo site_url('quen-mat-khau');?>">Quên mật khẩu?</a>
            </div>
          </div>
        </form>
        <p class="text-center"><a href="<?php echo site_url('cac-goi-dich-vu-va-gia');?>">Bạn chưa là thành viên? Đăng ký tại đây</a></p>
       
        <div id="social-login" class="clearfix horizontal">
           <ul  class="list-inline text-center">
              <li>
                <form name="reggoogle" action="">
                  <button class="btn text-left" href="" type="submit"><img src="<?php echo base_url().'media/google.png';?>" alt="google">&nbsp;&nbsp;Google</button>
                </form>
              </li>
              <li>
                <form name="regfacebook" action="">
                  <button class="btn text-left" href="" type="submit"><img src="<?php echo base_url().'media/Facebook.png';?>" alt="facebook">&nbsp;&nbsp;Facebook</button>
                </form>
              </li>
              <li>
                <form name="regyahoo" action="">
                  <button class="btn text-left" href="" type="submit"><img src="<?php echo base_url().'media/yahoo.png';?>" alt="yahoo">&nbsp;&nbsp;Yahoo</button>
                </form>
              </li>
              <li>
                <form name="regtwitter" action="">
                  <button class="btn text-left" href="" type="submit"><img src="<?php echo base_url().'media/twitter.png';?>" alt="twitter">&nbsp;&nbsp;Twitter</button>
                </form>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
</div>